﻿<UserControl x:Class="StockAnalyst2.StockGrid.GridViewer"
			 x:ClassModifier="internal"
			 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d" 
			 
			 xmlns:StockGrid="clr-namespace:StockAnalyst2.StockGrid" 
			 xmlns:Wpf="clr-namespace:Utils.Wpf;assembly=Utils"
             xmlns:Converters="clr-namespace:Utils.Wpf.Converters;assembly=Utils"
             xmlns:ConvertersSA="clr-namespace:StockAnalyst2.Converters"
             xmlns:AttachedProperties="clr-namespace:StockAnalyst2.AttachedProperties" 
			 
			 d:DesignWidth="1700"
			 
			 d:DataContext="{d:DesignInstance Type=StockGrid:GridVM}" 
			 
			 Wpf:AnimatorOnVisibilityChange.AnimationType="Fade"
			 Wpf:AnimatorOnVisibilityChange.Duration="750"
			 
			 Loaded="UserControl_Loaded" >

	<UserControl.Resources>
		<ResourceDictionary>
			<Converters:MultiValueToColorConverter x:Key="MultiValueToColorConverter" />
			<Converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
			<ConvertersSA:StatusToColorConverter x:Key="StatusToColorConverter" />
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="..\StockAnalystTheme.xaml" />
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</UserControl.Resources>

	<DataGrid AutoGenerateColumns="False" ItemsSource="{Binding Rows}" Background="{StaticResource GridBackground}" RowBackground="{StaticResource GridBackground}" HorizontalGridLinesBrush="{StaticResource SelectedRowBrush}" VerticalGridLinesBrush="{StaticResource DataGridHeaderBorderBrush}" RowHeaderWidth="0" HeadersVisibility="All" Foreground="{StaticResource FontBrush}" BorderThickness="0" HorizontalScrollBarVisibility="Auto"  VerticalScrollBarVisibility="Auto" SelectionMode="Single" d:DataContext="{d:DesignInstance Type=StockGrid:RowVM}" EnableColumnVirtualization="False" EnableRowVirtualization="True" VirtualizingStackPanel.IsVirtualizing="True" x:Name="MainGrid" IsVisibleChanged="MainGrid_IsVisibleChanged">
		<DataGrid.Resources>
			<Wpf:BindingProxy x:Key="BindProxy" Data="{Binding}" />
			<Style TargetType="TextBlock" x:Key="TextMargin" >
				<Setter Property="Margin" Value="10,0,10,0" />
			</Style>
		</DataGrid.Resources>
		<DataGrid.ItemContainerStyle>
			<Style TargetType="{x:Type DataGridRow}">
				<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
				<Setter Property="Visibility" Value="{Binding IsVisible, Converter={StaticResource BooleanToVisibilityConverter}}" />
			</Style>
		</DataGrid.ItemContainerStyle>
		<DataGrid.Columns>
			<DataGridTextColumn DisplayIndex="0" CellStyle="{StaticResource CellSelectionStyle}" HeaderStyle="{StaticResource DataGridColumnHeaderLeft}" CanUserResize="False" IsReadOnly="True" Header="Group" Binding="{Binding Group.Value}" ElementStyle="{StaticResource TextMargin}" x:Name="GroupColumn" SortDirection="Ascending" CanUserReorder="False" />
			<DataGridTextColumn DisplayIndex="1" CellStyle="{StaticResource CellSelectionStyle}" HeaderStyle="{StaticResource DataGridColumnHeaderLeft}" CanUserResize="False" IsReadOnly="True" Header="Name" Binding="{Binding Name.Value}" ElementStyle="{StaticResource TextMargin}" x:Name="NameColumn" CanUserReorder="False" />
			<DataGridTextColumn CellStyle="{StaticResource CellSelectionStyle}" HeaderStyle="{StaticResource DataGridColumnHeaderLeft}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=2, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Symbol.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Symbol.Visible}" Header="Symbol" Binding="{Binding Symbol.Value}" ElementStyle="{StaticResource TextMargin}" x:Name="SymbolColumn" />

			<!-- LastValue -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=3, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Value.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Value.Visible}" Header="Value" SortMemberPath="Value.Value" x:Name="ValueColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding Value.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Value.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Value.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding Value.IsRising}" Visibility="{Binding Value.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- OpenDiffPercentage -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=4, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.OpenDiffPercentage.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.OpenDiffPercentage.Visible}" Header="Open Diff(%)" SortMemberPath="OpenDifference.Value" x:Name="OpenDiffColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,0,0" VerticalAlignment="Center" Text="{Binding OpenDifference.Value,StringFormat=0.##, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.OpenDiffPercentage.NotifyChange}" >
									<TextBlock.Foreground>
										<MultiBinding Converter="{StaticResource MultiValueToColorConverter}">
											<Binding Path="OpenDifference.Value" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.OpenDiffPercentage.Limit" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.OpenDiffPercentage.ColorValue" />
										</MultiBinding>
									</TextBlock.Foreground>
							</TextBlock>
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="%" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.OpenDiffPercentage.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding OpenDifference.IsRising}" Visibility="{Binding OpenDifference.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- PreviousDiffPercentage -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=5, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDiffPercentage.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDiffPercentage.Visible}" Header="Prev Day Diff(%)" SortMemberPath="PreviousDifference.Value" x:Name="PrevDiffColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,0,0" VerticalAlignment="Center" Text="{Binding PreviousDifference.Value,StringFormat=0.##, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDiffPercentage.NotifyChange}" >
									<TextBlock.Foreground>
										<MultiBinding Converter="{StaticResource MultiValueToColorConverter}">
											<Binding Path="PreviousDifference.Value" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.PreviousDiffPercentage.Limit" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.PreviousDiffPercentage.ColorValue" />
										</MultiBinding>
									</TextBlock.Foreground>
							</TextBlock>
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="%" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDiffPercentage.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding PreviousDifference.IsRising}" Visibility="{Binding PreviousDifference.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- BidVolume -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=6, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.BidVolume.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.BidVolume.Visible}" Header="Bid Volume" SortMemberPath="BidVolume.Value" x:Name="BidVolumeColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding BidVolume.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.BidVolume.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.BidVolume.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding BidVolume.IsRising}" Visibility="{Binding PreviousDifference.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Bid -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=7, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Bid.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Bid.Visible}" Header="Bid" SortMemberPath="Bid.Value" x:Name="BidColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding Bid.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Bid.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Bid.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding Bid.IsRising}" Visibility="{Binding Bid.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Ask -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=8, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Ask.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Ask.Visible}" Header="Ask" SortMemberPath="Ask.Value" x:Name="AskColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding Ask.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Ask.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Ask.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding Ask.IsRising}" Visibility="{Binding Ask.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- AskVolume -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=9, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.AskVolume.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.AskVolume.Visible}" Header="Ask Volume" SortMemberPath="AskVolume.Value" x:Name="AskVolumeColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding AskVolume.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.AskVolume.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.AskVolume.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding AskVolume.IsRising}" Visibility="{Binding AskVolume.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- GapDiffPercentage -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=10, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.GapDiffPercentage.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.GapDiffPercentage.Visible}" Header="Gap Diff(%)" SortMemberPath="GapDifference.Value}" x:Name="GapDiffColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,0,0" VerticalAlignment="Center" Text="{Binding GapDifference.Value,StringFormat=0.##, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.GapDiffPercentage.NotifyChange}" >
									<TextBlock.Foreground>
										<MultiBinding Converter="{StaticResource MultiValueToColorConverter}">
											<Binding Path="GapDifference.Value" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.GapDiffPercentage.Limit" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.GapDiffPercentage.ColorValue" />
										</MultiBinding>
									</TextBlock.Foreground>
							</TextBlock>
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="%" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.GapDiffPercentage.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding GapDifference.IsRising}" Visibility="{Binding GapDifference.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- BidAskAverage -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=11, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.BidAskAverage.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.BidAskAverage.Visible}" Header="Bid Ask Avg." SortMemberPath="BidAskAverage.Value" x:Name="BidAskAverageColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding BidAskAverage.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.BidAskAverage.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.BidAskAverage.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding BidAskAverage.IsRising}" Visibility="{Binding BidAskAverage.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Max -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=12, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Max.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Max.Visible}" Header="Max" SortMemberPath="Max.Value" x:Name="MaxColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding Max.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Max.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Min -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=13, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Min.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Min.Visible}" Header="Min" SortMemberPath="Min.Value" x:Name="MinColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding Min.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Min.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- LastVolume -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=14, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.LastVolume.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.LastVolume.Visible}" Header="Last Volume" SortMemberPath="LastVolume.Value" x:Name="LastVolumeColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding LastVolume.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.LastVolume.NotifyChange}" />
							<Border BorderThickness="0" Visibility="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.LastVolume.DisplayArrow, Converter={StaticResource BooleanToVisibilityConverter}}" >
								<Wpf:UpDownArrow Margin="0,0,1,0" IsUp="{Binding LastVolume.IsRising}" Visibility="{Binding LastVolume.IsNotFirstValue, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Hidden}" UpBorderColor="#8CF211" DownBorderColor="#FF2222" UpFillColor="#004400" DownFillColor="#440000" />
							</Border>
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- TotalVolume -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=15, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.TotalVolume.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.TotalVolume.Visible}" Header="Volume" SortMemberPath="TotalVolume.Value" x:Name="VolumeColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding TotalVolume.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.TotalVolume.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- LastOperation -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=16, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.LastOperation.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.LastOperation.Visible}" Header="Last Operation" SortMemberPath="LastOperation.Value" x:Name="LastOperationColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding LastOperation.Value, StringFormat=hh\\:mm\\:ss, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.LastOperation.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- MaxOpenDiffPercentage -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=17, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.MaxOpenDiffPercentage.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.MaxOpenDiffPercentage.Visible}" Header="Max Open Diff(%)" SortMemberPath="MaxDifference.Value" x:Name="MaxDiffColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,0,0" VerticalAlignment="Center" Text="{Binding MaxDifference.Value,StringFormat=0.##, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.MaxOpenDiffPercentage.NotifyChange}" >
									<TextBlock.Foreground>
										<MultiBinding Converter="{StaticResource MultiValueToColorConverter}">
											<Binding Path="MaxDifference.Value" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.MaxOpenDiffPercentage.Limit" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.MaxOpenDiffPercentage.ColorValue" />
										</MultiBinding>
									</TextBlock.Foreground>
							</TextBlock>
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="%" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- MinOpenDiffPercentage -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False"  IsReadOnly="True" DisplayIndex="{Binding FallbackValue=18, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.MinOpenDiffPercentage.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.MinOpenDiffPercentage.Visible}" Header="Min Open Diff(%)" SortMemberPath="MinDifference.Value" x:Name="MinDiffColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,0,0" VerticalAlignment="Center" Text="{Binding MinDifference.Value,StringFormat=0.##, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.MinOpenDiffPercentage.NotifyChange}" >
									<TextBlock.Foreground>
										<MultiBinding Converter="{StaticResource MultiValueToColorConverter}">
											<Binding Path="MinDifference.Value" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.MinOpenDiffPercentage.Limit" />
											<Binding Source="{StaticResource BindProxy}" Path="Data.Columns.MinOpenDiffPercentage.ColorValue" />
										</MultiBinding>
									</TextBlock.Foreground>
							</TextBlock>
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="%" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Open -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False"  IsReadOnly="True" DisplayIndex="{Binding FallbackValue=19, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.OpenValue.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.OpenValue.Visible}" Header="Open" SortMemberPath="OpenValue.Value" x:Name="OpenColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding OpenValue.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.OpenValue.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- PreviousDayValue -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False"  IsReadOnly="True" DisplayIndex="{Binding FallbackValue=20, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDayValue.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDayValue.Visible}" Header="Prev Day" SortMemberPath="PreviousDayValue.Value" x:Name="PrevDayColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding PreviousDayValue.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.PreviousDayValue.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Status -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=21, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Status.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Status.Visible}" Header="Status" SortMemberPath="Status.Value" x:Name="StatusColumn" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<DockPanel Background="{Binding Status.Value, Converter={StaticResource StatusToColorConverter}}" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" HorizontalAlignment="Right" Text="{Binding Status.Value, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Status.NotifyChange}" />
						</DockPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>

			<!-- Date -->
			<DataGridTemplateColumn HeaderStyle="{StaticResource DataGridColumnHeaderRight}" CanUserResize="False" IsReadOnly="True" DisplayIndex="{Binding FallbackValue=22, Mode=TwoWay, Source={StaticResource BindProxy}, Path=Data.Columns.Date.DisplayIndex}" Visibility="{Binding Converter={StaticResource BooleanToVisibilityConverter}, Source={StaticResource BindProxy}, Path=Data.Columns.Date.Visible}" SortMemberPath="Date.Value" Header="Last Quotation Date" x:Name="LastDateColumn" Width="Auto" >
				<DataGridTemplateColumn.CellStyle>
					<Style TargetType="DataGridCell" BasedOn="{StaticResource CellSelectionStyle}">
						<Style.Triggers>
							<EventTrigger RoutedEvent="Binding.TargetUpdated">
								<BeginStoryboard>
									<Storyboard>
										<ColorAnimation AutoReverse="True" From="#1F1F1F" To="#FFFF88" Duration="0:0:0.200" Storyboard.TargetProperty="Background.Color" FillBehavior="Stop" />
									</Storyboard>
								</BeginStoryboard>
							</EventTrigger>
						</Style.Triggers>
					</Style>
				</DataGridTemplateColumn.CellStyle>
				<DataGridTemplateColumn.CellTemplate>
					<DataTemplate>
						<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" >
							<TextBlock Margin="3,0,3,0" VerticalAlignment="Center" Text="{Binding Date.Value, StringFormat=HH\\:mm\\:ss&#160;dd/MM/yyyy, TargetNullValue=---}" AttachedProperties:AllowTargetUpdatedNotification.AllowTargetUpdated="{Binding Source={StaticResource BindProxy}, Path=Data.Columns.Date.NotifyChange}" />
						</StackPanel>
					</DataTemplate>
				</DataGridTemplateColumn.CellTemplate>
			</DataGridTemplateColumn>
		</DataGrid.Columns>
	</DataGrid>
</UserControl>
